/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('ims_crl_tpshop_menu', {
    id: {
      type: DataTypes.INTEGER(8).UNSIGNED,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    pid: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    module: {
      type: DataTypes.STRING(20),
      allowNull: false
    },
    type: {
      type: DataTypes.INTEGER(2),
      allowNull: false,
      defaultValue: '1'
    },
    path: {
      type: DataTypes.CHAR(80),
      allowNull: false,
      defaultValue: ''
    },
    title: {
      type: DataTypes.CHAR(20),
      allowNull: false,
      defaultValue: ''
    },
    status: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
      defaultValue: '1'
    },
    icon: {
      type: DataTypes.CHAR(50),
      allowNull: false,
      defaultValue: ''
    },
    font: {
      type: DataTypes.CHAR(50),
      allowNull: false,
      defaultValue: 'larry-icon'
    },
    sort: {
      type: DataTypes.INTEGER(5).UNSIGNED,
      allowNull: false,
      defaultValue: '100'
    }
  }, {
    tableName: 'ims_crl_tpshop_menu'
  });

  Model.associate = function() {

  }

  return Model;
};
